package com.company;

public class SalesEmployee  extends  Employee{
    private int monthSales; //月销售额
    private float percent;// 提成率

    @Override
    public int getSalary(int month) {
        int salaryAdd = super.getSalary(month);

        return (int) (monthSales* percent + salaryAdd);

    }

    public int getMonthSales() {
        return monthSales;
    }

    public void setMonthSales(int monthSales) {
        this.monthSales = monthSales;
    }

    public float getPercent() {
        return percent;
    }

    public void setPercent(float percent) {
        this.percent = percent;
    }
}
